package easy;

public class Solution_1837 {

    public int sumBase(int n, int k) {
        int count = 0;
        while (n > 0) {
            int mod = n % k;
            n /= k;
            count += mod;
        }
        return count;
    }

    public static void main(String[] args) {
        Solution_1837 model = new Solution_1837();
    }
}
